package com.yinhai.httpclient;

import org.apache.http.HttpVersion;
import org.apache.http.ProtocolVersion;

public interface HttpClientContext {
	
	//httpclient connection
	public static final int HTTPCLIENT_CONN_MAXPERROUTE = 100;
	
	public static final int HTTPCLIENT_CONN_MAXTOTALCONN = 1;
	
	public static final long HTTPCLIENT_CONN_IDLESECEND = 2L;
	
	public static final long HTTPCLIENT_CONN_TIMERMSEL = 2000L;
	//httpclient engine
	public static final String HTTPCLIENT_ENGINE_CONTENTCHARSET = "utf-8";
	
	public static final String HTTPCLIENT_ENGINE_HTTPELEMENTCHARSET = "utf-8";
	
	public static final boolean HTTPCLIENT_ENGINE_USEEXPECTCONTINUE = false;
	
	public static final String HTTPCLIENT_ENGINE_USERAGENT = "";
	
	public static final ProtocolVersion HTTPCLIENT_ENGINE_VERSION = HttpVersion.HTTP_1_1;
	
	public static final int HTTPCLIENT_ENGINE_CONNECTIONTIMEOUT = 20000;
	
	public static final int HTTPCLIENT_ENGINE_LINGER = 5;
	
	public static final int HTTPCLIENT_ENGINE_SOCKETBUFFERSIZE = 8192;
	
	public static final int HTTPCLIENT_ENGINE_SOTIMEOUT = 30000;
	
	public static final boolean HTTPCLIENT_ENGINE_STALECHECKINGENABLED = true;
	
	public static final boolean HTTPCLIENT_ENGINE_TCPNODELAY = true;
	
}
